package com.sailors.common.task.provider.infra.system.config.task;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.DelayQueue;

@Configuration
public class TaskBeanConfig {

    @Bean("fileTaskDelayQueue")
    public DelayQueue<CommonDelayQueueTask<Long>> fileTaskDelayQueue(){
        return new DelayQueue<CommonDelayQueueTask<Long>>();
    }
}
